﻿/*
 * Created by SharpDevelop.
 * User: Andrew Sadler
 * Date: 09/09/2012
 * Time: 09:16
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Drawing;

namespace RRRSRoguelike.Helpers.Visualizer
{
	/// <summary>
	/// Description of MenuPanel.
	/// </summary>
	public class MenuPanel : Panel
	{
		public Menu Menu = new Menu();

		public MenuPanel(Point position, int width, int height,
						 string borderCharacter = "+", ConsoleColor borderColor = ConsoleColor.White)
			: base(
				position, width, height, borderCharacter, borderColor)
		{
		}

		public void DrawMenu()
		{
			Menu.DrawMenu(this);
		}

		public void HandleInput()
		{
			if (Menu.HandleInput())
				DrawMenu();
		}

	}
}
